<?php
namespace soa\mp\cloudPrint\v1;

use soa\client;

class agentConfig  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';
    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//agent设置
	public function getConfig($agent_guid,$key = ""){
		return $this->post("api/cloudPrint/cloudPrint/v1/agentConfig/getConfig",compact('agent_guid','key'));
	}

	//agent设置是否可用
	public function setCanUse($agent_guid,$can_use = "1"){
		return $this->post("api/cloudPrint/cloudPrint/v1/agentConfig/setCanUse",compact('agent_guid','can_use'));
	}
}